package com.yh.dao;

import com.yh.javabean.Product;

import java.util.List;

public interface ProductDao {

    List<Product> selectAll();

    List<Product> selectAByproductName(String productName);

    Product selectById(int id);

    //根据订单id查询产品信息
    Product selectByOid(int oid);

    int updateProduct(Product product);

    int insertProduct(Product product);

    int deleteById(int id);

    int deleteByList(List<Integer> ids);

    int deleteByArray(int[] ids);
}
